﻿/*
Copyright (C) 2010 RESSEGUIER Valentin

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public
License along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
 */

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using NNKirclib;

namespace IrcClientConsole
{
    class Program
    {
        static void Main(string[] args)
        {
            string Channel = "#all";
            string Message = null;
            Console.WriteLine("Welcome to NNKirclib Test Software");
            Console.WriteLine("Write by Valentin Resseguier. To contribute at project send me an mail at root@noknokfinder.com");
            Console.WriteLine("To Quit type EXIT");

            IrcClient irc = new IrcClient();
            irc.Nick = "guest";
            irc.User = "guest 0 * :guest";
            irc.Server = "www.noknokfinder.com";
            irc.Port = 6667;
            irc.Connect();
            irc.Join(Channel);
            Console.Write("Message a envoyer sur le chat : ");
            Message = Console.ReadLine();
            irc.ChannelSendMsg(Channel, Message);
            Console.WriteLine("Message envoyé : " + Message);
            irc.Close();
        }
    }
}
